<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>山寨版网页连连看</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="lianliankan.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="JavaScript" src="javascript/jquery-1.3.2.min.js" charset="utf-8" ></script>
<script type="text/javascript" language="JavaScript" src="plugins/sort-left.js" charset="utf-8" ></script>
<script type="text/javascript" language="JavaScript" src="plugins/sort-down.js" charset="utf-8" ></script>
<script type="text/javascript" language="JavaScript" src="plugins/sort-right.js" charset="utf-8" ></script>
<script type="text/javascript" language="JavaScript" src="plugins/sort-up.js" charset="utf-8" ></script>
<script type="text/javascript" language="JavaScript" src="javascript/map-main.js" charset="utf-8" ></script>

<script type="text/javascript" language="JavaScript">
$(function(){
	var mapInfo={
			iLines : 10,
			iColumns : 8,
			debugHandle : function(oIconMap,iLines,iColumns){
				var msg="";
				for(var i=0;i<=iLines+1;i++){
					for(var j=0;j<=iColumns+1;j++){
						msg+=oIconMap[i][j];
						msg+=" | ";
					}
					msg+="<br/>"
				}
				$("#test").html(msg);
			},
			plugins:[sort_right_plugin,sort_down_plugin,sort_left_plugin,sort_up_plugin]
	};
	$("#gameMap").llk(mapInfo);
	$("#replay").click(function(){
		$("#gameMap").empty().llk(mapInfo);
	});
});
</script>
</head>
<body>
<div id="gameMap"></div>
<div id="toolbar"><input type="button" value="replay" id="replay"/></div>
<div id="test"></div>
</body>
</html>